package com.liip.log.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.liip.log.aspect.SysLog;
import com.liip.log.entity.User;
import com.liip.log.service.UserService;

/**
 * 
 * @ClassName: UserController
 * @Description: TODO
 * @author Liip
 * @date 2020-11-12 09:14:32
 */
@RestController
@RequestMapping("/demo")
public class UserController {
	@Autowired
	private UserService userService;

	@SysLog(value = "测试")
	@GetMapping(value = "get")
	public User getInformation(String userName, String passWord) {
		return userService.getInformation(userName, passWord);
	}
}
